package gr.atc.epart.actions;

import gr.atc.epart.users.User;

import java.util.Date;

public class Deliberation extends Action
{
	// deliberation functionality is implemented using Google moderator
	// the link to moderator is the series id 
	private int _moderatorSeriesId;
	
	

	public Deliberation()
	{
		_popularity = _visits = 0;
		_type = Action.Type.Deliberation;
		
		_dateCreated = (new Date());
		_dateModified = null;

		_moderatorSeriesId = 0;
	}
	
	public Deliberation(String name, String description, User creator,
			Date startDate, Date stopDate)
	{
		_name = name;
		_description = description;
		_creator = creator;
	
		_popularity = _visits = 0;
		_type = Action.Type.Deliberation;
		
		_dateCreated = (new Date());
		_dateModified = null;

		_moderatorSeriesId = 0;
	}
	
	public Deliberation(String name, String description, User creator,
			Date startDate, Date stopDate,int seriesId)
	{
		_name = name;
		_description = description;
		_creator = creator;
	
		_popularity = _visits = 0;
		_type = Action.Type.Deliberation;
		
		_dateCreated = (new Date());
		_dateModified = null;

		_moderatorSeriesId = seriesId;
	}
	
	public int getModeratorSeriesId()
	{
		return _moderatorSeriesId;
	}

	public void setModeratorSeriesId(int seriesId)
	{
		_moderatorSeriesId = seriesId;
	}
}
